package com.web3.management.dto.tm;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 客户端上报的会话信息结构
 */
@Data
public class SessionCapture {

    private String clientId;
    private Long capturedAt;
    private String cookies;
    private String csrfToken;
    private List<StorageItem> storageItems;
    private Map<String, HeaderCapture> headersByUrl;

    @Data
    public static class StorageItem {
        private String label;
        private String key;
        private String value;
    }

    @Data
    public static class HeaderCapture {
        private Map<String, String> headers;
        private Long capturedAt;
        private Map<String, Object> meta;
    }
}
